package b.g.b.h.l;

import b.g.b.h.d;
import b.g.b.h.e;
import b.g.b.h.l.b.a;
import b.g.b.h.l.b.b;

/* compiled from: Direct */
public class h {
    public static a a = new a();

    public static boolean a(d dVar) {
        d.a aVar = d.a.MATCH_CONSTRAINT;
        d.a aVar2 = d.a.WRAP_CONTENT;
        d.a aVar3 = d.a.FIXED;
        d.a m = dVar.m();
        d.a q = dVar.q();
        d dVar2 = dVar.P;
        dVar2 = dVar2 != null ? (e) dVar2 : null;
        if (dVar2 != null) {
            d.a m2 = dVar2.m();
        }
        if (dVar2 != null) {
            d.a q2 = dVar2.q();
        }
        boolean z = false;
        Object obj = (m == aVar3 || m == aVar2 || ((m == aVar && dVar.l == 0 && dVar.S == 0.0f && dVar.u(0)) || dVar.z())) ? 1 : null;
        Object obj2 = (q == aVar3 || q == aVar2 || ((q == aVar && dVar.m == 0 && dVar.S == 0.0f && dVar.u(1)) || dVar.A())) ? 1 : null;
        if (dVar.S > 0.0f && (obj != null || obj2 != null)) {
            return true;
        }
        if (!(obj == null || obj2 == null)) {
            z = true;
        }
        return z;
    }

    /* JADX WARNING: Missing block: B:42:0x00a1, code skipped:
            if (r15.c != false) goto L_0x00af;
     */
    /* JADX WARNING: Missing block: B:48:0x00ad, code skipped:
            if (r9.c != false) goto L_0x00af;
     */
    /* JADX WARNING: Missing block: B:49:0x00af, code skipped:
            r9 = 1;
     */
    /* JADX WARNING: Missing block: B:95:0x0152, code skipped:
            if (r13.c != false) goto L_0x0160;
     */
    /* JADX WARNING: Missing block: B:101:0x015e, code skipped:
            if (r12.c != false) goto L_0x0160;
     */
    /* JADX WARNING: Missing block: B:102:0x0160, code skipped:
            r12 = 1;
     */
    public static void b(b.g.b.h.d r16, b.g.b.h.l.b.b r17, boolean r18) {
        /*
        r0 = r16;
        r1 = r17;
        r2 = r18;
        r3 = b.g.b.h.d.a.MATCH_CONSTRAINT;
        r4 = r0 instanceof b.g.b.h.e;
        r5 = 0;
        if (r4 != 0) goto L_0x0021;
    L_0x000d:
        r4 = r16.y();
        if (r4 == 0) goto L_0x0021;
    L_0x0013:
        r4 = a(r16);
        if (r4 == 0) goto L_0x0021;
    L_0x0019:
        r4 = new b.g.b.h.l.b$a;
        r4.m418init();
        b.g.b.h.e.X(r0, r1, r4, r5);
    L_0x0021:
        r4 = b.g.b.h.c.a.LEFT;
        r4 = r0.i(r4);
        r6 = b.g.b.h.c.a.RIGHT;
        r6 = r0.i(r6);
        r7 = r4.c();
        r8 = r6.c();
        r9 = r4.a;
        r10 = 0;
        r11 = 8;
        if (r9 == 0) goto L_0x0113;
    L_0x003c:
        r4 = r4.c;
        if (r4 == 0) goto L_0x0113;
    L_0x0040:
        r4 = r9.iterator();
    L_0x0044:
        r9 = r4.hasNext();
        if (r9 == 0) goto L_0x0113;
    L_0x004a:
        r9 = r4.next();
        r9 = (b.g.b.h.c) r9;
        r13 = r9.d;
        r14 = a(r13);
        r15 = r13.y();
        if (r15 == 0) goto L_0x0066;
    L_0x005c:
        if (r14 == 0) goto L_0x0066;
    L_0x005e:
        r15 = new b.g.b.h.l.b$a;
        r15.m418init();
        b.g.b.h.e.X(r13, r1, r15, r5);
    L_0x0066:
        r15 = r13.m();
        if (r15 != r3) goto L_0x00be;
    L_0x006c:
        if (r14 == 0) goto L_0x006f;
    L_0x006e:
        goto L_0x00be;
    L_0x006f:
        r14 = r13.m();
        if (r14 != r3) goto L_0x0044;
    L_0x0075:
        r14 = r13.p;
        if (r14 < 0) goto L_0x0044;
    L_0x0079:
        r14 = r13.o;
        if (r14 < 0) goto L_0x0044;
    L_0x007d:
        r14 = r13.c0;
        if (r14 == r11) goto L_0x008b;
    L_0x0081:
        r14 = r13.l;
        if (r14 != 0) goto L_0x0044;
    L_0x0085:
        r14 = r13.S;
        r14 = (r14 > r10 ? 1 : (r14 == r10 ? 0 : -1));
        if (r14 != 0) goto L_0x0044;
    L_0x008b:
        r14 = r13.w();
        if (r14 != 0) goto L_0x0044;
    L_0x0091:
        r14 = r13.A;
        if (r14 != 0) goto L_0x0044;
    L_0x0095:
        r14 = r13.D;
        if (r9 != r14) goto L_0x00a3;
    L_0x0099:
        r15 = r13.F;
        r15 = r15.f;
        if (r15 == 0) goto L_0x00a3;
    L_0x009f:
        r15 = r15.c;
        if (r15 != 0) goto L_0x00af;
    L_0x00a3:
        r15 = r13.F;
        if (r9 != r15) goto L_0x00b1;
    L_0x00a7:
        r9 = r14.f;
        if (r9 == 0) goto L_0x00b1;
    L_0x00ab:
        r9 = r9.c;
        if (r9 == 0) goto L_0x00b1;
    L_0x00af:
        r9 = 1;
        goto L_0x00b2;
    L_0x00b1:
        r9 = 0;
    L_0x00b2:
        if (r9 == 0) goto L_0x0044;
    L_0x00b4:
        r9 = r13.w();
        if (r9 != 0) goto L_0x0044;
    L_0x00ba:
        d(r0, r1, r13, r2);
        goto L_0x0044;
    L_0x00be:
        r14 = r13.y();
        if (r14 == 0) goto L_0x00c6;
    L_0x00c4:
        goto L_0x0044;
    L_0x00c6:
        r14 = r13.D;
        if (r9 != r14) goto L_0x00e2;
    L_0x00ca:
        r15 = r13.F;
        r15 = r15.f;
        if (r15 != 0) goto L_0x00e2;
    L_0x00d0:
        r9 = r14.d();
        r9 = r9 + r7;
        r14 = r13.r();
        r14 = r14 + r9;
        r13.F(r9, r14);
        b(r13, r1, r2);
        goto L_0x0044;
    L_0x00e2:
        r15 = r13.F;
        if (r9 != r15) goto L_0x00fe;
    L_0x00e6:
        r12 = r14.f;
        if (r12 != 0) goto L_0x00fe;
    L_0x00ea:
        r9 = r15.d();
        r9 = r7 - r9;
        r12 = r13.r();
        r12 = r9 - r12;
        r13.F(r12, r9);
        b(r13, r1, r2);
        goto L_0x0044;
    L_0x00fe:
        if (r9 != r14) goto L_0x0044;
    L_0x0100:
        r9 = r15.f;
        if (r9 == 0) goto L_0x0044;
    L_0x0104:
        r9 = r9.c;
        if (r9 == 0) goto L_0x0044;
    L_0x0108:
        r9 = r13.w();
        if (r9 != 0) goto L_0x0044;
    L_0x010e:
        c(r1, r13, r2);
        goto L_0x0044;
    L_0x0113:
        r4 = r0 instanceof b.g.b.h.f;
        if (r4 == 0) goto L_0x0118;
    L_0x0117:
        return;
    L_0x0118:
        r4 = r6.a;
        if (r4 == 0) goto L_0x01eb;
    L_0x011c:
        r6 = r6.c;
        if (r6 == 0) goto L_0x01eb;
    L_0x0120:
        r4 = r4.iterator();
    L_0x0124:
        r6 = r4.hasNext();
        if (r6 == 0) goto L_0x01eb;
    L_0x012a:
        r6 = r4.next();
        r6 = (b.g.b.h.c) r6;
        r7 = r6.d;
        r9 = a(r7);
        r12 = r7.y();
        if (r12 == 0) goto L_0x0146;
    L_0x013c:
        if (r9 == 0) goto L_0x0146;
    L_0x013e:
        r12 = new b.g.b.h.l.b$a;
        r12.m418init();
        b.g.b.h.e.X(r7, r1, r12, r5);
    L_0x0146:
        r12 = r7.D;
        if (r6 != r12) goto L_0x0154;
    L_0x014a:
        r13 = r7.F;
        r13 = r13.f;
        if (r13 == 0) goto L_0x0154;
    L_0x0150:
        r13 = r13.c;
        if (r13 != 0) goto L_0x0160;
    L_0x0154:
        r13 = r7.F;
        if (r6 != r13) goto L_0x0162;
    L_0x0158:
        r12 = r12.f;
        if (r12 == 0) goto L_0x0162;
    L_0x015c:
        r12 = r12.c;
        if (r12 == 0) goto L_0x0162;
    L_0x0160:
        r12 = 1;
        goto L_0x0163;
    L_0x0162:
        r12 = 0;
    L_0x0163:
        r13 = r7.m();
        if (r13 != r3) goto L_0x019e;
    L_0x0169:
        if (r9 == 0) goto L_0x016c;
    L_0x016b:
        goto L_0x019e;
    L_0x016c:
        r6 = r7.m();
        if (r6 != r3) goto L_0x0124;
    L_0x0172:
        r6 = r7.p;
        if (r6 < 0) goto L_0x0124;
    L_0x0176:
        r6 = r7.o;
        if (r6 < 0) goto L_0x0124;
    L_0x017a:
        r6 = r7.c0;
        if (r6 == r11) goto L_0x0188;
    L_0x017e:
        r6 = r7.l;
        if (r6 != 0) goto L_0x0124;
    L_0x0182:
        r6 = r7.S;
        r6 = (r6 > r10 ? 1 : (r6 == r10 ? 0 : -1));
        if (r6 != 0) goto L_0x0124;
    L_0x0188:
        r6 = r7.w();
        if (r6 != 0) goto L_0x0124;
    L_0x018e:
        r6 = r7.A;
        if (r6 != 0) goto L_0x0124;
    L_0x0192:
        if (r12 == 0) goto L_0x0124;
    L_0x0194:
        r6 = r7.w();
        if (r6 != 0) goto L_0x0124;
    L_0x019a:
        d(r0, r1, r7, r2);
        goto L_0x0124;
    L_0x019e:
        r9 = r7.y();
        if (r9 == 0) goto L_0x01a6;
    L_0x01a4:
        goto L_0x0124;
    L_0x01a6:
        r9 = r7.D;
        if (r6 != r9) goto L_0x01c2;
    L_0x01aa:
        r13 = r7.F;
        r13 = r13.f;
        if (r13 != 0) goto L_0x01c2;
    L_0x01b0:
        r6 = r9.d();
        r6 = r6 + r8;
        r9 = r7.r();
        r9 = r9 + r6;
        r7.F(r6, r9);
        b(r7, r1, r2);
        goto L_0x0124;
    L_0x01c2:
        r13 = r7.F;
        if (r6 != r13) goto L_0x01de;
    L_0x01c6:
        r6 = r9.f;
        if (r6 != 0) goto L_0x01de;
    L_0x01ca:
        r6 = r13.d();
        r6 = r8 - r6;
        r9 = r7.r();
        r9 = r6 - r9;
        r7.F(r9, r6);
        b(r7, r1, r2);
        goto L_0x0124;
    L_0x01de:
        if (r12 == 0) goto L_0x0124;
    L_0x01e0:
        r6 = r7.w();
        if (r6 != 0) goto L_0x0124;
    L_0x01e6:
        c(r1, r7, r2);
        goto L_0x0124;
    L_0x01eb:
        return;
        */
        throw new UnsupportedOperationException("Method not decompiled: b.g.b.h.l.h.b(b.g.b.h.d, b.g.b.h.l.b$b, boolean):void");
    }

    public static void c(b bVar, d dVar, boolean z) {
        float f = dVar.Z;
        int c = dVar.D.f.c();
        int c2 = dVar.F.f.c();
        int d = dVar.D.d() + c;
        int d2 = c2 - dVar.F.d();
        if (c == c2) {
            f = 0.5f;
        } else {
            c = d;
            c2 = d2;
        }
        d = dVar.r();
        d2 = (c2 - c) - d;
        if (c > c2) {
            d2 = (c - c2) - d;
        }
        int i = ((int) ((f * ((float) d2)) + 0.5f)) + c;
        d2 = i + d;
        if (c > c2) {
            d2 = i - d;
        }
        dVar.F(i, d2);
        b(dVar, bVar, z);
    }

    public static void d(d dVar, b bVar, d dVar2, boolean z) {
        float f = dVar2.Z;
        int d = dVar2.D.d() + dVar2.D.f.c();
        int c = dVar2.F.f.c() - dVar2.F.d();
        if (c >= d) {
            int r = dVar2.r();
            if (dVar2.c0 != 8) {
                int r2;
                int i = dVar2.l;
                if (i == 2) {
                    if (dVar instanceof e) {
                        r2 = dVar.r();
                    } else {
                        r2 = dVar.P.r();
                    }
                    r = (int) ((dVar2.Z * 0.5f) * ((float) r2));
                } else if (i == 0) {
                    r = c - d;
                }
                r = Math.max(dVar2.o, r);
                r2 = dVar2.p;
                if (r2 > 0) {
                    r = Math.min(r2, r);
                }
            }
            d += (int) ((f * ((float) ((c - d) - r))) + 0.5f);
            dVar2.F(d, r + d);
            b(dVar2, bVar, z);
        }
    }

    public static void e(b bVar, d dVar) {
        float f = dVar.a0;
        int c = dVar.E.f.c();
        int c2 = dVar.G.f.c();
        int d = dVar.E.d() + c;
        int d2 = c2 - dVar.G.d();
        if (c == c2) {
            f = 0.5f;
        } else {
            c = d;
            c2 = d2;
        }
        d = dVar.l();
        d2 = (c2 - c) - d;
        if (c > c2) {
            d2 = (c - c2) - d;
        }
        int i = (int) ((f * ((float) d2)) + 0.5f);
        d2 = c + i;
        int i2 = d2 + d;
        if (c > c2) {
            d2 = c - i;
            i2 = d2 - d;
        }
        dVar.G(d2, i2);
        g(dVar, bVar);
    }

    public static void f(d dVar, b bVar, d dVar2) {
        float f = dVar2.a0;
        int d = dVar2.E.d() + dVar2.E.f.c();
        int c = dVar2.G.f.c() - dVar2.G.d();
        if (c >= d) {
            int l = dVar2.l();
            if (dVar2.c0 != 8) {
                int l2;
                int i = dVar2.m;
                if (i == 2) {
                    if (dVar instanceof e) {
                        l2 = dVar.l();
                    } else {
                        l2 = dVar.P.l();
                    }
                    l = (int) ((f * 0.5f) * ((float) l2));
                } else if (i == 0) {
                    l = c - d;
                }
                l = Math.max(dVar2.r, l);
                l2 = dVar2.s;
                if (l2 > 0) {
                    l = Math.min(l2, l);
                }
            }
            d += (int) ((f * ((float) ((c - d) - l))) + 0.5f);
            dVar2.G(d, l + d);
            g(dVar2, bVar);
        }
    }

    /* JADX WARNING: Missing block: B:42:0x009c, code skipped:
            if (r12.c != false) goto L_0x00aa;
     */
    /* JADX WARNING: Missing block: B:48:0x00a8, code skipped:
            if (r6.c != false) goto L_0x00aa;
     */
    /* JADX WARNING: Missing block: B:49:0x00aa, code skipped:
            r6 = 1;
     */
    /* JADX WARNING: Missing block: B:93:0x0147, code skipped:
            if (r11.c != false) goto L_0x0155;
     */
    /* JADX WARNING: Missing block: B:99:0x0153, code skipped:
            if (r10.c != false) goto L_0x0155;
     */
    /* JADX WARNING: Missing block: B:100:0x0155, code skipped:
            r10 = 1;
     */
    public static void g(b.g.b.h.d r14, b.g.b.h.l.b.b r15) {
        /*
        r0 = b.g.b.h.d.a.MATCH_CONSTRAINT;
        r1 = r14 instanceof b.g.b.h.e;
        r2 = 0;
        if (r1 != 0) goto L_0x001b;
    L_0x0007:
        r1 = r14.y();
        if (r1 == 0) goto L_0x001b;
    L_0x000d:
        r1 = a(r14);
        if (r1 == 0) goto L_0x001b;
    L_0x0013:
        r1 = new b.g.b.h.l.b$a;
        r1.m418init();
        b.g.b.h.e.X(r14, r15, r1, r2);
    L_0x001b:
        r1 = b.g.b.h.c.a.TOP;
        r1 = r14.i(r1);
        r3 = b.g.b.h.c.a.BOTTOM;
        r3 = r14.i(r3);
        r4 = r1.c();
        r5 = r3.c();
        r6 = r1.a;
        r7 = 0;
        r8 = 8;
        r9 = 1;
        if (r6 == 0) goto L_0x0108;
    L_0x0037:
        r1 = r1.c;
        if (r1 == 0) goto L_0x0108;
    L_0x003b:
        r1 = r6.iterator();
    L_0x003f:
        r6 = r1.hasNext();
        if (r6 == 0) goto L_0x0108;
    L_0x0045:
        r6 = r1.next();
        r6 = (b.g.b.h.c) r6;
        r10 = r6.d;
        r11 = a(r10);
        r12 = r10.y();
        if (r12 == 0) goto L_0x0061;
    L_0x0057:
        if (r11 == 0) goto L_0x0061;
    L_0x0059:
        r12 = new b.g.b.h.l.b$a;
        r12.m418init();
        b.g.b.h.e.X(r10, r15, r12, r2);
    L_0x0061:
        r12 = r10.q();
        if (r12 != r0) goto L_0x00b9;
    L_0x0067:
        if (r11 == 0) goto L_0x006a;
    L_0x0069:
        goto L_0x00b9;
    L_0x006a:
        r11 = r10.q();
        if (r11 != r0) goto L_0x003f;
    L_0x0070:
        r11 = r10.s;
        if (r11 < 0) goto L_0x003f;
    L_0x0074:
        r11 = r10.r;
        if (r11 < 0) goto L_0x003f;
    L_0x0078:
        r11 = r10.c0;
        if (r11 == r8) goto L_0x0086;
    L_0x007c:
        r11 = r10.m;
        if (r11 != 0) goto L_0x003f;
    L_0x0080:
        r11 = r10.S;
        r11 = (r11 > r7 ? 1 : (r11 == r7 ? 0 : -1));
        if (r11 != 0) goto L_0x003f;
    L_0x0086:
        r11 = r10.x();
        if (r11 != 0) goto L_0x003f;
    L_0x008c:
        r11 = r10.A;
        if (r11 != 0) goto L_0x003f;
    L_0x0090:
        r11 = r10.E;
        if (r6 != r11) goto L_0x009e;
    L_0x0094:
        r12 = r10.G;
        r12 = r12.f;
        if (r12 == 0) goto L_0x009e;
    L_0x009a:
        r12 = r12.c;
        if (r12 != 0) goto L_0x00aa;
    L_0x009e:
        r12 = r10.G;
        if (r6 != r12) goto L_0x00ac;
    L_0x00a2:
        r6 = r11.f;
        if (r6 == 0) goto L_0x00ac;
    L_0x00a6:
        r6 = r6.c;
        if (r6 == 0) goto L_0x00ac;
    L_0x00aa:
        r6 = 1;
        goto L_0x00ad;
    L_0x00ac:
        r6 = 0;
    L_0x00ad:
        if (r6 == 0) goto L_0x003f;
    L_0x00af:
        r6 = r10.x();
        if (r6 != 0) goto L_0x003f;
    L_0x00b5:
        f(r14, r15, r10);
        goto L_0x003f;
    L_0x00b9:
        r11 = r10.y();
        if (r11 == 0) goto L_0x00c1;
    L_0x00bf:
        goto L_0x003f;
    L_0x00c1:
        r11 = r10.E;
        if (r6 != r11) goto L_0x00dd;
    L_0x00c5:
        r12 = r10.G;
        r12 = r12.f;
        if (r12 != 0) goto L_0x00dd;
    L_0x00cb:
        r6 = r11.d();
        r6 = r6 + r4;
        r11 = r10.l();
        r11 = r11 + r6;
        r10.G(r6, r11);
        g(r10, r15);
        goto L_0x003f;
    L_0x00dd:
        r12 = r10.G;
        if (r6 != r12) goto L_0x00f9;
    L_0x00e1:
        r13 = r12.f;
        if (r13 != 0) goto L_0x00f9;
    L_0x00e5:
        r6 = r12.d();
        r6 = r4 - r6;
        r11 = r10.l();
        r11 = r6 - r11;
        r10.G(r11, r6);
        g(r10, r15);
        goto L_0x003f;
    L_0x00f9:
        if (r6 != r11) goto L_0x003f;
    L_0x00fb:
        r6 = r12.f;
        if (r6 == 0) goto L_0x003f;
    L_0x00ff:
        r6 = r6.c;
        if (r6 == 0) goto L_0x003f;
    L_0x0103:
        e(r15, r10);
        goto L_0x003f;
    L_0x0108:
        r1 = r14 instanceof b.g.b.h.f;
        if (r1 == 0) goto L_0x010d;
    L_0x010c:
        return;
    L_0x010d:
        r1 = r3.a;
        if (r1 == 0) goto L_0x01e0;
    L_0x0111:
        r3 = r3.c;
        if (r3 == 0) goto L_0x01e0;
    L_0x0115:
        r1 = r1.iterator();
    L_0x0119:
        r3 = r1.hasNext();
        if (r3 == 0) goto L_0x01e0;
    L_0x011f:
        r3 = r1.next();
        r3 = (b.g.b.h.c) r3;
        r4 = r3.d;
        r6 = a(r4);
        r10 = r4.y();
        if (r10 == 0) goto L_0x013b;
    L_0x0131:
        if (r6 == 0) goto L_0x013b;
    L_0x0133:
        r10 = new b.g.b.h.l.b$a;
        r10.m418init();
        b.g.b.h.e.X(r4, r15, r10, r2);
    L_0x013b:
        r10 = r4.E;
        if (r3 != r10) goto L_0x0149;
    L_0x013f:
        r11 = r4.G;
        r11 = r11.f;
        if (r11 == 0) goto L_0x0149;
    L_0x0145:
        r11 = r11.c;
        if (r11 != 0) goto L_0x0155;
    L_0x0149:
        r11 = r4.G;
        if (r3 != r11) goto L_0x0157;
    L_0x014d:
        r10 = r10.f;
        if (r10 == 0) goto L_0x0157;
    L_0x0151:
        r10 = r10.c;
        if (r10 == 0) goto L_0x0157;
    L_0x0155:
        r10 = 1;
        goto L_0x0158;
    L_0x0157:
        r10 = 0;
    L_0x0158:
        r11 = r4.q();
        if (r11 != r0) goto L_0x0193;
    L_0x015e:
        if (r6 == 0) goto L_0x0161;
    L_0x0160:
        goto L_0x0193;
    L_0x0161:
        r3 = r4.q();
        if (r3 != r0) goto L_0x0119;
    L_0x0167:
        r3 = r4.s;
        if (r3 < 0) goto L_0x0119;
    L_0x016b:
        r3 = r4.r;
        if (r3 < 0) goto L_0x0119;
    L_0x016f:
        r3 = r4.c0;
        if (r3 == r8) goto L_0x017d;
    L_0x0173:
        r3 = r4.m;
        if (r3 != 0) goto L_0x0119;
    L_0x0177:
        r3 = r4.S;
        r3 = (r3 > r7 ? 1 : (r3 == r7 ? 0 : -1));
        if (r3 != 0) goto L_0x0119;
    L_0x017d:
        r3 = r4.x();
        if (r3 != 0) goto L_0x0119;
    L_0x0183:
        r3 = r4.A;
        if (r3 != 0) goto L_0x0119;
    L_0x0187:
        if (r10 == 0) goto L_0x0119;
    L_0x0189:
        r3 = r4.x();
        if (r3 != 0) goto L_0x0119;
    L_0x018f:
        f(r14, r15, r4);
        goto L_0x0119;
    L_0x0193:
        r6 = r4.y();
        if (r6 == 0) goto L_0x019b;
    L_0x0199:
        goto L_0x0119;
    L_0x019b:
        r6 = r4.E;
        if (r3 != r6) goto L_0x01b7;
    L_0x019f:
        r11 = r4.G;
        r11 = r11.f;
        if (r11 != 0) goto L_0x01b7;
    L_0x01a5:
        r3 = r6.d();
        r3 = r3 + r5;
        r6 = r4.l();
        r6 = r6 + r3;
        r4.G(r3, r6);
        g(r4, r15);
        goto L_0x0119;
    L_0x01b7:
        r11 = r4.G;
        if (r3 != r11) goto L_0x01d3;
    L_0x01bb:
        r3 = r6.f;
        if (r3 != 0) goto L_0x01d3;
    L_0x01bf:
        r3 = r11.d();
        r3 = r5 - r3;
        r6 = r4.l();
        r6 = r3 - r6;
        r4.G(r6, r3);
        g(r4, r15);
        goto L_0x0119;
    L_0x01d3:
        if (r10 == 0) goto L_0x0119;
    L_0x01d5:
        r3 = r4.x();
        if (r3 != 0) goto L_0x0119;
    L_0x01db:
        e(r15, r4);
        goto L_0x0119;
    L_0x01e0:
        r1 = b.g.b.h.c.a.BASELINE;
        r14 = r14.i(r1);
        r1 = r14.a;
        if (r1 == 0) goto L_0x0253;
    L_0x01ea:
        r1 = r14.c;
        if (r1 == 0) goto L_0x0253;
    L_0x01ee:
        r1 = r14.c();
        r14 = r14.a;
        r14 = r14.iterator();
    L_0x01f8:
        r3 = r14.hasNext();
        if (r3 == 0) goto L_0x0253;
    L_0x01fe:
        r3 = r14.next();
        r3 = (b.g.b.h.c) r3;
        r4 = r3.d;
        r5 = a(r4);
        r6 = r4.y();
        if (r6 == 0) goto L_0x021a;
    L_0x0210:
        if (r5 == 0) goto L_0x021a;
    L_0x0212:
        r6 = new b.g.b.h.l.b$a;
        r6.m418init();
        b.g.b.h.e.X(r4, r15, r6, r2);
    L_0x021a:
        r6 = r4.q();
        if (r6 != r0) goto L_0x0222;
    L_0x0220:
        if (r5 == 0) goto L_0x01f8;
    L_0x0222:
        r5 = r4.y();
        if (r5 == 0) goto L_0x0229;
    L_0x0228:
        goto L_0x01f8;
    L_0x0229:
        r5 = r4.H;
        if (r3 != r5) goto L_0x01f8;
    L_0x022d:
        r3 = r4.y;
        if (r3 != 0) goto L_0x0232;
    L_0x0231:
        goto L_0x024d;
    L_0x0232:
        r3 = r4.W;
        r3 = r1 - r3;
        r5 = r4.R;
        r5 = r5 + r3;
        r4.V = r3;
        r6 = r4.E;
        r6.j(r3);
        r3 = r4.G;
        r3.j(r5);
        r3 = r4.H;
        r3.b = r1;
        r3.c = r9;
        r4.i = r9;
    L_0x024d:
        g(r4, r15);	 Catch:{ all -> 0x0251 }
        goto L_0x01f8;
    L_0x0251:
        r14 = move-exception;
        throw r14;
    L_0x0253:
        return;
        */
        throw new UnsupportedOperationException("Method not decompiled: b.g.b.h.l.h.g(b.g.b.h.d, b.g.b.h.l.b$b):void");
    }
}
